package zzu.websocket.JAXB;

import javax.xml.bind.annotation.*;
import java.util.List;

/**
 * @Author:ny
 * @Date: 2020/4/13 15:00
 */

@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "AddressList")
public class AddressList {
    @XmlElement(name = "TimeStamp")
    private String TimeStamp;
    @XmlElement(name = "Version")
    private String Version;
    @XmlElementWrapper(name = "CommElementTypeList")
    @XmlElement(name = "CommElementType")
    private List<CommElementType> CommElementTypeList;
    @XmlElement(name = "Unit")
    private List<Unit> Unit;

    @Override
    public String toString() {
        return "AddressList{" +
                "TimeStamp='" + TimeStamp + '\'' +
                ", Version='" + Version + '\'' +
                ", CommElementTypeList=" + CommElementTypeList +
                ", Unit=" + Unit +
                '}';
    }

    public String getTimeStamp() {
        return TimeStamp;
    }

    public void setTimeStamp(String timeStamp) {
        TimeStamp = timeStamp;
    }

    public String getVersion() {
        return Version;
    }

    public void setVersion(String version) {
        Version = version;
    }

    public List<CommElementType> getCommElementTypeList() {
        return CommElementTypeList;
    }

    public void setCommElementTypeList(List<CommElementType> commElementTypeList) {
        CommElementTypeList = commElementTypeList;
    }

    public List<zzu.websocket.JAXB.Unit> getUnit() {
        return Unit;
    }

    public void setUnit(List<zzu.websocket.JAXB.Unit> unit) {
        Unit = unit;
    }
}
